//创建一个路由器，并暴露出来
import { createRouter,createWebHistory } from "vue-router";
import Home from '@/components/Home.vue'
import News from '@/components/News.vue'
import About from '@/components/About.vue'
const router = createRouter({
  history:createWebHistory(),
  routes:[
     {
       path:'/home',
       component:Home
     },
     {
       path:'/about',
       component:About
     },
     {
      path:'/news',
      component:News
     }
  ]
})

export default router